import { Input, Modal, Select, Textarea } from 'ant-design-vue'
import { createVNode } from 'vue'
import { ExclamationCircleOutlined } from '@ant-design/icons-vue'
Input.props.placeholder.default = '请输入'
Textarea.props.placeholder.default = '请输入'
Input.props.allowClear.default = true
Select.props.allowClear.default = true
Select.props.placeholder.default = '请选择'
export const useConfirm = argu => {
  Modal.confirm({
    icon: createVNode(ExclamationCircleOutlined),
    ...argu
  })
}
